package com.wlb365.admin.modules.devops.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wlb365.admin.modules.devops.entity.RouteBase;
import com.wlb365.admin.modules.devops.mapper.RouteBaseMapper;
import com.wlb365.admin.modules.devops.service.RouteBaseService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 路由配置表 服务实现类
 * </p>
 *
 * @author
 * @since 2020-04-11 16:18:46
 */
@Service
public class RouteBaseServiceImpl extends ServiceImpl<RouteBaseMapper, RouteBase> implements RouteBaseService {

    @Override
    public Page<RouteBase> listRouteBasePage(RouteBase routeBase) {
        Page<RouteBase> page = new Page<>(routeBase.getCurrent(), routeBase.getSize());
        List<RouteBase> routeBases = baseMapper.selectRouteBaseList(routeBase, page);
        return page.setRecords(routeBases);
    }

}
